<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
	<% form_for(@bookshop) do |f| %>
	  <%= f.error_messages %>
		<table>
            <tbody>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.name') %>
                </td>
                <td>
                  <%= f.text_field :name %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.acronym') %>
                </td>
                <td>
                  <%= f.text_field :acronym %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.ftp') %>
                </td>
                <td>
                  <%= f.text_field :ftp %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.discount') %>
                </td>
                <td>
                  <%= f.text_field :discount %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.shipping_cost') %>
                </td>
                <td>
                  <%= f.check_box :shipping_cost %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.cboxp') %>
                </td>
                <td>
                  <%= f.text_field :cboxp %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.cboxt') %>
                </td>
                <td>
                  <%= f.text_field :cboxt %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.cboxc') %>
                </td>
                <td>
                  <%= f.text_field :cboxc %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.bookshop.currency') %>
                </td>
                <td>
                  <%= collection_select(:bookshop, "currency_id", @currencies, :id, :name, :prompt =>true) %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.postal_code') %>
                </td>
                <td>
                  <%= f.text_field :postal_code %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.email') %>
                </td>
                <td>
                  <%= f.text_field :email %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.phone') %>
                </td>
                <td>
                  <%= f.text_field :phone %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.url') %>
                </td>
                <td>
                  <%= f.text_field :url %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.commercial_adress') %>
                </td>
                <td>
                  <%= f.text_field :commercial_adress %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.postal_adress') %>
                </td>
                <td>
                  <%= f.text_field :postal_adress %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= label_tag :city, t('activerecord.attributes.customer.city') %>
                </td>
                <td>
                  <%= collection_select(:bookshop, "city_id", @cities, :id, :name, :prompt =>true) %>
                </td>
              </tr>
            </tbody>
		</table>
		<%= f.submit t('btn_update') %>
	<% end %>
  </div>
  <div class="portlet-footer">
    <%= link_to t('btn_show'), @bookshop %> |
    <%= link_to t('btn_back'), bookshops_path %>
  </div>
</div>
